package com.diandiji.demo.service.impl;


import com.diandiji.demo.dao.AreaDao;
import com.diandiji.demo.entity.Area;
import com.diandiji.demo.entity.User;
import com.diandiji.demo.service.AreaService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service // 标识为Spring的Service组件
public class AreaServicelmpl implements AreaService {

    @Resource // 按名称自动注入AreaDao的bean对象
    private AreaDao areaDao;

    @Override
    public String queryAllArea(String areaName) {
        List<Area> areaList = areaDao.queryAllArea(areaName);
        return null;
    }
}
